<template>
    <!-- use the modal component, pass in the prop -->
    <modal v-if="stateManager.editDialogVisible"
           @cancel="closeDialog"
           @ok="closeDialog"
           :modal-title="modalTitle"
           model-size="normal">
        <!--
          you can use custom content here to overwrite
          default content
        -->
        <div class="row center-block">
            <img  class="img-thumbnail center-block" width="300px" src="http://tjise.daxuefun.cn/qrcodes/qrcode.png" alt="请扫描二维码">
        </div>

    </modal>


</template>

<script>
    export default {
        props: {
            stateManager: {
                type: Object
            }
        },
        data: function () {
            return {
                qrcode_img:''
            };
        },
        methods: {
            closeDialog: function () {
//                console.log(11);
                this.stateManager.editDialogVisible = false;
            }
        },
        computed: {
            modalTitle: function () {
              return '请扫描二维码';
            },

        }
    }
</script>